//供货
import http from "../http";
export const getSupplyApi=(limit,page)=>http({
    url:"/vendor/selectByPagevendor",
    method:"post",
    params:{
        limit,page
    }
})

//删除
export const delSupplyApi=(id)=>http({
    url:"/vendor/deletevendor",
    method:"post",
    params:{
        id
    }
})

// 查询
export const selectSupplyApi=(params={})=>http({
    url:"/vendor/selectByNameOrContactpersonvendor",
    method:"post",
    params
})

// 添加
export const AddSupplyApi=(ve_Email,ve_Landline_telephones,
    ve_address,ve_beizhu,ve_contact,ve_name,ve_phone)=>http({
    url:"/vendor/insertvendor",
    method:"post",
    params:{
     ve_Email,ve_Landline_telephones,
    ve_address,ve_beizhu,ve_contact,ve_name,ve_phone
    }
})

// 修改编辑
export const updatedSupplyApi=(params={})=>http({
    url:"/vendor/updatevendor",
    method:"post",
    params
})
